package org.kmp.project.main

import androidx.compose.runtime.getValue
import androidx.compose.runtime.mutableStateOf
import androidx.compose.runtime.setValue
import androidx.lifecycle.ViewModel

class MainViewModel : ViewModel() {

    var selectedIndex by mutableStateOf(0)
        private set

    var bottomItems by mutableStateOf<List<Main.BottomItem>>(emptyList())
        private set

    fun setBottoms(items: List<Main.BottomItem>) {
        bottomItems = items
    }

    fun selectIndex(index: Int) {
        selectedIndex = index
    }
}